import request from "@/utils/request";
const baseUrl = "https://engine.piesat.cn/hr_data";
const street = {
  // 判断是否有街景数据
  ifExist(params: any) {
    return request({
      url: `${baseUrl}/streetIfExist?lng=${params.x}&lat=${params.y}`,
      method: "get",
    });
  },
  // 获取JSON
  getJsonByPanoId(params: any) {
    return request({
      url: `${baseUrl}/getJsonByPanoId?panoId=${params.panoId}&fileName=${params.fileName}`,
      method: "get",
    });
  },
  // 获取街景图片
  getImageByPanoId(params: any) {
    return request({
      url: `${baseUrl}/getImageByPanoId?panoId=${params.panoId}&fileName=${params.fileName}&zoom=${params.zoom}`,
      method: "get",
    });
  },
};

export default street;
